package OrderPattern.third.command;

import OrderPattern.third.Command;
import OrderPattern.third.appliance.CeilingFan;

public class CeilingFanOffCommand implements Command {

    CeilingFan ceilingFan;
    public CeilingFanOffCommand(CeilingFan ceilingFan){
        this.ceilingFan = ceilingFan;
    }
    @Override
    public void execute() {
        ceilingFan.off();
    }

    @Override
    public void undo() {
        ceilingFan.low();
    }
}
